package com.xzx.servlet30;

import lombok.extern.slf4j.Slf4j;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * @author xinzhixuan
 * @version 1.0
 * @date 2025/5/10 21:50
 */
@Slf4j
public class MyListener implements ServletContextListener  {

    @Override
    public void contextInitialized(ServletContextEvent sce) {
        log.info("=====MyListener contextInitialized");
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        log.info("=====MyListener contextDestroyed");
    }
}
